import java.io.FileNotFoundException;

import services.SongProcessor;
import services.SongReader;
import models.CSVDocument;
import models.SongCollection;
import comparator.ComparatorByYear;

public class MainClass {
	public static void main(String[] args) throws FileNotFoundException {
		SongReader songReader = new SongReader(new CSVDocument("1.csv"));
		SongCollection newCollection = songReader.getSongsCollection();
		System.out.println(newCollection);
		SongProcessor songProcessor = new SongProcessor(newCollection);
		songProcessor.sort(new ComparatorByYear());
		System.out.println(songProcessor.getCollectionOfSongs());

	}
}
